import React, { Component } from 'react'
class NewsView extends Component {
  constructor(props) {
    super(props)
    this.state = {}
    console.log(props)
  }
  componentDidMount() {
    console.log('新闻载入')
  }
  render() {
    return (
      <div>
        <h2>新闻列表</h2>
      </div>
    )
  }
  componentWillUnmount() {
    console.log('新闻卸载')
  }
}

export default NewsView
